FROM openjdk:8-jdk-alpine
ARG APP_DIR=/data/app

# 合并分层结果
COPY build/dependencies/ ${APP_DIR}/
COPY build/snapshot-dependencies/ ${APP_DIR}/
COPY build/spring-boot-loader/ ${APP_DIR}/
COPY build/application/ ${APP_DIR}/

# 切换工作目录
WORKDIR ${APP_DIR}

# 执行
ENTRYPOINT ["java", "org.springframework.boot.loader.JarLauncher"]
